<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form form class="form-horizontal" id="form" method="post" action="">
                             <input type="hidden" name="id" value="{$data['id']}">
                             
                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 科目类型 </label>
                                    <div class="col-sm-9">
                                        <select id="course" name="course" class="multiselect">
                                            <option value="1" <if condition="$data['course'] eq 1">selected="selected"</if>
                                            >科目二</option>
                                            <option value="2" <if condition="$data['course'] eq 2">selected="selected"</if>>科目三</option>
                                        </select>
                                    </div>
                                </div>

                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4">场地 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="site" id="car_num" class="col-xs-10 col-sm-5" value="{$data['site']}">
                                    <span class="help-inline col-xs-12 col-sm-7">
                                                <span class="middle"></span>
                                            </span>
                                </div>
                            </div>
                            
                            <div class="space-4"></div>

							<div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"></label>
                                <div class="col-sm-9">
                                    <span class="col-xs-10 col-sm-5">
                                                <span class="middle" style='color:red;'>*修改场地信息，将改变已发布的与该场地信息相关的排班场地信息！</span>
                                            </span>
                                </div>
                            </div>
                            
                            <div class="space-4"></div>

                            <div class="col-md-offset-2 col-md-9">
                                <button class="btn btn-info" id="submit" type="submit">
                                    <i class="icon-ok bigger-110"></i>
                                    提交
                                </button>

                                &nbsp; &nbsp; &nbsp;
                                <button class="btn" type="reset">
                                    <i class="icon-undo bigger-110"></i>
                                    重置
                                </button>
                            </div>
                        </form>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    

$(function () {
        // $("#tabs").tabs();
        // var editor = KindEditor.create('textarea[name="content"]', {
        //     uploadJson: '__PUBLIC__/kindeditor/php/upload_json.php',
        //     fileManagerJson: '__PUBLIC__/kindeditor/php/file_manager_json.php',
        //     allowFileManager: true,
        //     afterBlur: function () {
        //         this.sync();
        //     }
        // });
        $("#submit").click(function () {
              var car_type = $('#car_type').val();
              var car_num = $.trim($("#car_num").val());
              var l_type = $('#l_type').val();
            if (car_type == '') {
                bootbox.dialog({
                    title: '友情提示：',
                    message: "请填写车辆型号！",
                    buttons: {
                        "success": {
                            "label": "确定",
                            "className": "btn-danger"
                        }
                    }
                });
                return false;
            }
                
                    
            if(car_num == '')
            {
                 bootbox.dialog({
                    title: '友情提示：',
                    message: "请车牌号！",
                    buttons: {
                        "success": {
                            "label": "确定",
                            "className": "btn-danger"
                        }
                    }
                });
                return false;
            }
            if(l_type == '0')
            {
                 bootbox.dialog({
                    title: '友情提示：',
                    message: "请选择驾照类型！",
                    buttons: {
                        "success": {
                            "label": "确定",
                            "className": "btn-danger"
                        }
                    }
                });
                return false;
            }
            console.log('111');
            // $("#form").submit();
        });

        
    });
</script>
</body>
</html>
